package com.hnkywl.sts.entity.sys;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：
 * 包:        com.hnkywl.sts.entity.sys
 * 类描述:    页面元素
 * 创建人:    zcg
 * 创建时间: 13-2-18 上午10:24
 * 修改人:    zcg
 * 修改时间: 13-2-18 上午10:24
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_SYS_YMYS")
@Where(clause = "deleted!='1'")
public class Ymys extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqYmys", allocationSize = 1, sequenceName = "SEQ_SYS_YMYS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqYmys")
    private Long id;
    /**
     * 名称
     */
    private String mc;
    /**
     * 排序号
     */
    private Integer pxh;
    /**
     * 页面元素ID
     */
    private String ymysid;
    /**
     * 页面元素html
     */
    @Column(length = 4000)
    private String ymysHtml;
    /**
     * 页面元素所在的url
     */
    @Column(length = 4000)
    private String url;
    /**
     * 菜单
     */
    @ManyToOne
    @JoinColumn(name = "CD_ID")
    @Where(clause = "deleted!='1'")
    private Cd cd;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    public Integer getPxh() {
        return pxh;
    }

    public void setPxh(Integer pxh) {
        this.pxh = pxh;
    }

    public String getYmysid() {
        return ymysid;
    }

    public void setYmysid(String ymysid) {
        this.ymysid = ymysid;
    }

    public String getYmysHtml() {
        return ymysHtml;
    }

    public void setYmysHtml(String ymysHtml) {
        this.ymysHtml = ymysHtml;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Cd getCd() {
        return cd;
    }

    public void setCd(Cd cd) {
        this.cd = cd;
    }
}
